home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / hdf / unix / hdf3_2r2.lha / HDF3.2r2 / MAKE.UNICOS < prev    next >
Encoding:
Text File  |  1992-10-30  |  3.9 KB  |  161 lines

  1. #
  2. # ##################################################################
  3. #
  4. #                   NCSA HDF Version 3.2 release 2
  5. #                         October 30, 1992
  6. #
  7. #           MAKEFILE for creating the HDF library, libdf.a, on Crays
  8. #
  9. # This makefile creates the following FORTRAN and C interfaces 
  10. # for HDF in a library called "libdf.a": 
  11. #
  12. #              DFR8   (8-bit raster image sets)
  13. #              DF24   (24-bit raster image sets)
  14. #              DFP    (palettes)
  15. #              DFSD   (scientific data sets)
  16. #              DFAN   (annotations)
  17. #              V      (vsets)
  18. #
  19. # See the file INSTALL for further information on how to invoke
  20. # this makefile.
  21. #
  22. # This release of HDF marks the first use of a new set of lower
  23. # level routines.  The makefile also creates these interfaces,
  24. # which are available in C only.  These routines are categorized 
  25. # as follows:
  26. #
  27. #              H      (lower level i/o)
  28. #              DF     (emulation of old lower level i/o routines)
  29. #              HD     (lower level utilities for developers)
  30. #              HE     (lower level error-handling)
  31. #              HD     (lower level utilities, for developers)
  32. #              DFK    (conversion routines)
  33. #
  34. # ##################################################################
  35. #
  36. #
  37. #
  38. #
  39. # This is the top level Makefile to build HDF 3.2 on Unix based
  40. #       platforms
  41. #
  42. # Possible Machine Types
  43. #   SUN, IBM6000, HP9000, MIPSEL (Dec Mips based machines), ...
  44. #
  45.  
  46. # Define your sh shell
  47. SHELL=/bin/sh
  48.  
  49. # Define your machine type
  50. MACHINE=UNICOS
  51.  
  52. # Define your C compiler and flags
  53. CC= cc
  54. CFLAGS= -D${MACHINE} 
  55.  
  56. # Define your FORTRAN compiler
  57. FC= cf77
  58. FFLAGS=
  59.  
  60. # Location where the HDF include files are to be installed
  61. HDFINC= `pwd`/include
  62.  
  63. # Location where the HDF library is to be installed
  64. HDFLIB= `pwd`/lib
  65.  
  66. # Location to put HDF utility executables
  67. HDFBIN= `pwd`/bin
  68.  
  69. # Name of library archiver and flags to send
  70. AR= ar
  71. ARFLAGS= r
  72.  
  73. # Name of achive randomizer (use 'touch' if non-existant)
  74. RANLIB= touch
  75.  
  76. # Name of remove utility
  77. RM= /bin/rm
  78. RMFLAGS= -f 
  79.  
  80. #
  81. #
  82. # Flags to recursively send
  83. #
  84.  
  85. HDF_FLAGS       = \
  86.         CC="$(CC)" \
  87.         CFLAGS="$(CFLAGS)" \
  88.         FC="$(FC)" \
  89.         FFLAGS="$(FFLAGS)" \
  90.         RANLIB="$(RANLIB)" \
  91.         AR="$(AR)" \
  92.         ARFLAGS="$(ARFLAGS)" \
  93.         RM="$(RM)" \
  94.         RMFLAGS="$(RMFLAGS)" \
  95.         MACHINE="$(MACHINE)" \
  96.         HDFLIB="$(HDFLIB)" \
  97.         HDFINC="$(HDFINC)" \
  98.     HDFBIN="$(HDFBIN)"    
  99.  
  100. #
  101. #
  102. # General rules
  103. #
  104. all:
  105.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@ \
  106.           SUBDIRS="src util test" _sub message 
  107.  
  108. allnofortran:
  109.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=nofortran \
  110.           SUBDIRS="src util test" _sub message 
  111.  
  112. libnofortran:
  113.     @$(MAKE) $(MYFLAGS) $(HDF_FLAGS) TARG=nofortran \
  114.       SUBDIRS="src" _sub message
  115.  
  116. libnostub: libnofortran
  117.  
  118. allnostub: allnofortran
  119.  
  120. libdf:
  121.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  122.           SUBDIRS="src" _sub
  123.  
  124. utilities:
  125.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  126.           SUBDIRS="util" _sub
  127.  
  128. tests:
  129.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=all \
  130.           SUBDIRS="test" _sub
  131.  
  132. #install:      $(INSTALL_DIRS)
  133. #    @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@  \
  134. #          SUBDIRS="src util test" _sub
  135.  
  136. clean:
  137.     @$(MAKE) $(MFLAGS) $(HDF_FLAGS) TARG=$@  \
  138.           SUBDIRS="src util test" _sub
  139.     $(RM) $(RMFLAGS) core *.log
  140.  
  141. _sub:
  142.     @for dir in $(SUBDIRS); do \
  143.           (cd $$dir; echo Making \`$(TARG)\' in `pwd`; \
  144.               $(MAKE) $(MFLAGS) $(HDF_FLAGS) $(TARG)); \
  145.     done
  146.  
  147. message:
  148.     @echo ""
  149.     @echo "***********************************************************"
  150.     @echo " HDF 3.2 library successfully created."
  151.     @echo ""
  152.     @echo "If you have any old vset files (v 1.0) you must use vcompat"
  153.     @echo "to make them compatible with Vset 2.0 applications"
  154.     @echo ""
  155.     @echo "User programs can be created as follows:"
  156.     @echo ""
  157.     @echo "   cc -D${MACHINE} program.c libdf.a -o program"
  158.     @echo ""
  159.     @echo "***********************************************************"
  160.     @echo ""
  161.